package com.example.helloword;

import com.example.helloword.config.autoConfig.EnableAutoImportSelf;
import com.example.helloword.config.autoConfig.FirstClass;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
@EnableCaching
@EnableAutoImportSelf
@Slf4j
public class HelloWordApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(HelloWordApplication.class, args);
        FirstClass bean = context.getBean(FirstClass.class);
        log.info("bean={}", bean);
    }

}
